package cloud.tianai.ram.policy.client;

import cloud.tianai.ram.policy.common.model.dto.Statement;
import org.aopalliance.intercept.MethodInvocation;

import java.util.List;

/**
 * @Author: 天爱有情
 * @date 2022/3/23 15:57
 * @Description 当前用户权限提供者
 */
public interface CurrentUserStatementProvider {

    /**
     * 获取当前用户的所有权限描述
     *
     * @param invocation invocation
     * @return List<Statement>
     */
    List<Statement> getCurrentUserStatementList(MethodInvocation invocation);

}
